﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DateTime?>" %>

<%string name = ViewData.TemplateInfo.HtmlFieldPrefix;%>
<%string id = name.Replace(".", "_");%>


<div class="editor-field">
    <%= Html.TextBoxFor(model => model) %>
    <%= Html.ValidationMessageFor(model => model) %>
</div>

<%--<link href="<%= Url.Content("~/Content/jquery-ui/redmond/jquery-ui-1.8.4.custom.css") %>"
    rel="stylesheet" type="text/css" />--%>
<script src="<%= Url.Content("~/Scripts/ui/minified/jquery.ui.core.min.js") %>" type="text/javascript"></script>
<script src="<%= Url.Content("~/Scripts/ui/minified/jquery.ui.datepicker.min.js") %>"
    type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#<%=id%>").datepicker({
            showOn: 'both',
            dateFormat: 'mm/dd/yy ',
            changeMonth: true,
            changeYear: true
            
        });
    });
</script>
